[vars]
tarball=util-linux-$(cat "$K"/util-linux.version).tar.xz

[deps]
util-linux-tarball
curses

[build]
patch -p1 < "$K"/util-linux.patch
patch -p1 < "$K"/util-linux-hexdump.patch

CFLAGS="-D_GNU_SOURCE $optcflags" \
LDFLAGS="-Wl,-static $optldflags -lcurses -lterminfo" \
./configure -C \
  --prefix="$butch_prefix" --with-ncurses --disable-shared  \
  --disable-silent-rules \
  --disable-nls --disable-libuuid --disable-mount           \
  --disable-fsck --disable-uuidd --disable-libblkid         \
  --disable-mountpoint --disable-fdformat --disable-hwclock \
  --disable-switch_root --disable-kill --disable-login      \
  --disable-sulogin --disable-su --disable-more             \
  --disable-pg \
  --disable-wall --disable-use-tty-group \

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install
